package com.ref.demo7;

/**
 *@ClassName Email
 *@Description  TODO
 *@Author Kx
 *@Date 2025/3/17 19:41
 *@Version 1.0
 */
public class Email {
    private String email;

    public String checkEmail(String email) {
        // 截取用户输入的email地址中的帐户名
        return email.substring(0, email.indexOf("@"));
    }
}
